package com.example.baseapp.business.dto.req;

import com.example.baseapp.business.entity.User;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * UserReq class
 *
 * @author zhangl
 * @date 2022/3/23 17:55
 */
@Data
@Accessors(chain = true)
public class UserReq extends User {
    @NotBlank(message = "用户名不能为空")
    private String name;
    @NotBlank(message = "邮箱不能为空")
    private String email;
    @NotBlank(message = "电话不能为空")
    private String tel;
    private String password;
}
